package com.yingxin.yxerp.module.sys.vo.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yingxin.yx.framework.commons.vo.CommonRespVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 每日编号
 * @author fanchao
 * @since 2022-01-16
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "BusinessTypeSettingRespVo对象", description = "每日编号")
public class BusinessTypeSettingRespVo extends CommonRespVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id ")
    private String id;

    @ApiModelProperty(value = "code ")
    private String code;

    @ApiModelProperty(value = "名称 ")
    private String name;

    @ApiModelProperty(value = "不设置编号：0 正常 1 不设置")
    private String invalidFlag;

    @ApiModelProperty(value = "前缀 ")
    private String prefix;

    @ApiModelProperty(value = "日期格式 ")
    private String datePattern;

    @ApiModelProperty(value = "每日编号默认长度")
    private Integer dailyNoLength;

    @ApiModelProperty(value = "记录编号")
    private Integer dailyNo;

    @ApiModelProperty(value = "记录日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date recordDate;


}
